<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
        "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta content="This is Chris's Home Page" name="description">
    <meta content="Chris,Web,Music,photo" name="keywords">
    <meta content="text/html;charset=utf-8" http-equiv="content-type"/>
    <title>Hello JavaScript!</title>
    <script defer="defer" type="text/javascript">
        function onLoad() {
            var txt = document.getElementById("txt01");
            var obj = window.dialogArguments;
            txt.value = obj.name;
        }

        function closeWin() {
            var txt = document.getElementById("txt01");
            window.returnValue = txt.value;
            window.close();
        }
    </script>
</head>
<body onload="onLoad()">
<br/>
<input id="txt01" type="text">
<button id="btn01" onclick="closeWin()">Close</button>
<br/>
</body>
</html>
